//package com.sskj.llg_data;
//
//import cn.hutool.core.collection.CollectionUtil;
//import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
//import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
//import com.shslgc.dataservice.dao.LlgDataWarningCountMapper;
//import com.shslgc.dataservice.model.LlgDataWarningCount;
//import org.springframework.stereotype.Service;
//
//import java.util.HashMap;
//import java.util.List;
//import java.util.Map;
//
///**
// * @Author: Like
// * @Date: 2023/10/30 15:35
// * @Description:
// */
//@Service
//public class LlgDataWarningCountServiceImpl extends ServiceImpl<LlgDataWarningCountMapper, LlgDataWarningCount> implements LlgDataWarningCountService {
//
//    @Override
//    public Map<String, String> warningCount(String year) {
//        LambdaQueryWrapper<LlgDataWarningCount> queryWrapper = new LambdaQueryWrapper<>();
//        queryWrapper.eq(LlgDataWarningCount::getEarlyWarningYear,year);
//        List<LlgDataWarningCount> list = list(queryWrapper);
//        HashMap<String, String> map = new HashMap<>();
//        map.put("Ⅳ","0");
//        map.put("Ⅲ","0");
//        map.put("Ⅱ","0");
//        map.put("Ⅰ","0");
//        if(CollectionUtil.isNotEmpty(list)){
//            list.stream().forEach(llgDataWarningCount->{
//                map.put(llgDataWarningCount.getSignalLevel(),llgDataWarningCount.getWarningCount());
//            });
//        }
//        return map;
//    }
//}